package com.sds.fw.mvc;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * A class providing a skeletal implementations for the user-made Action classes.
 * 
 * @author SDS
 */
public abstract class Action {
	/**
	 * process the specified HTTP request, and create the corresponding HTTP response.
	 * User should extends this class to implement user specific implementations.
	 * 
	 * @param     request   the HTTP request we are processing.
     * @param     response  the HTTP response we are creating.
	 */
	public abstract void execute(HttpServletRequest request, HttpServletResponse response) throws IOException , ServletException;
}
